function [orderBookSample, changes] = sampleOrderBookAsCell( option_string, optionMap )
    
    changes = '';

    %Read data (localhost is set up separately by PrimeTrader software)
    try
        urlString = urlread( strcat('http://localhost:8678/expanded-mbp/',option_string) );
    catch
        error( 'Error reading data. Make sure url string is correctly specified and that PrimeTrader is running')
    end
    
    lineBreakIndices =  strfind( urlString, '</tr>');
    lineStartIndices =  strfind( urlString, '<tr>');
     
  
    %Process urlstring
    ticker = '';
    conc_bid = '';
    conc_ask = '';
    for i = 2:length(lineBreakIndices)
        line = urlString( lineStartIndices(i)+4:lineBreakIndices(i)-1 );
        td_start = strfind( line, '<td>' );
        td_end =  strfind( line, '</td>' );
        
        temp_ticker = line( td_start(1)+4:td_end(1)-1 );
        if strcmp( ticker, '' )
            ticker = temp_ticker;
        end
        timestamp = line( td_start(3)+4:td_end(3)-1 );
        if ~strcmp( temp_ticker, ticker)
            old_values = optionMap.optionMap( ticker );
            if ~( strcmp( old_values{2}, conc_bid ) &&...
                    strcmp( old_values{3}, conc_ask ) )
                optionMap.optionMap( ticker ) = {timestamp, conc_bid, conc_ask};
                changes{end+1,1} = [ ticker, ',$,', timestamp,',$', conc_bid,',$', conc_ask ];
            end
            conc_bid = '';
            conc_ask = '';
            ticker = temp_ticker;
        end
        
        if length(line( td_start(5)+3:td_end(7) )) > 20
            conc_bid = [ conc_bid, ',',line( td_start(5)+4:td_end(5)-1 ),...
                ',', line( td_start(6)+4:td_end(6)-1 ) ,...
                ',', line( td_start(7)+4:td_end(7)-1 ) ] ;
        end
        if length(line( td_start(8)+3:td_end(10) )) > 20
            conc_ask = [ conc_ask, ',',line( td_start(8)+4:td_end(8)-1 ),...
                ',', line( td_start(9)+4:td_end(9)-1 ) ,...
                ',', line( td_start(10)+4:td_end(10)-1 ) ] ;
        end
        
    end
    orderBookSample = optionMap;

end